#include "mystdio.h"

int main()
{
	MY_FILE* fp = my_fopen("log.txt", "w");
	if(fp == NULL) return 1;

	char* ch = "write something to it\n";
	int time = 5;
	while(time--)
	{
		//char buff[LEN];
		//snprintf(buff, sizeof(buff), "%s", ch);
		//my_fwrite(buff, strlen(buff), 1, fp);
		my_fwrite(ch, strlen(ch), 1, fp);
		//my_fflush(fp);
	}

	my_fclose(fp);
	return 0;
}
